/* 防止锚点链接自动滚动 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem; /* 为固定导航栏留出空间 */
}

/* 初始加载时禁用滚动行为 */
html.loading {
    scroll-behavior: auto;
}

.no-auto-scroll {
    scroll-behavior: auto !important;
}

.no-auto-scroll.loaded {
    scroll-behavior: smooth;
} 